]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
theme: Move basic selectors into _base.scss
authornana-4 <hnmaigo@gmail.com>
Sun, 19 Jan 2020 16:18:06 +0000 (01:18 +0900)
committerFlorian Müllner <florian.muellner@gmail.com>
Thu, 13 Feb 2020 19:46:29 +0000 (19:46 +0000)
.shell-link, .lowres-icon and .icon-dropshadow could be used globally.

For the icon shadow classes, they're used by officially supported
extensions.[1]

[1] https://gitlab.gnome.org/GNOME/gnome-shell-extensions/issues/168

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/938

data/theme/gnome-shell-sass/_widgets.scss
data/theme/gnome-shell-sass/widgets/_app-grid.scss
data/theme/gnome-shell-sass/widgets/_base.scss [new file with mode: 0644]
data/theme/gnome-shell-sass/widgets/_misc.scss
data/theme/meson.build

index 4ff6a122c2abc8e89ab45bd0ccf3a84baa6e6bd5..48d440f588469ef1dcc7e2e44700ba8e22db124f 100644 (file)
@@ -7,6 +7,7 @@
 /* WIDGETS */
 
 // Primary widgets
+@import 'widgets/base';
 @import 'widgets/entries';
 @import 'widgets/buttons';
 @import 'widgets/check-box';
index ba6eb608dc9fcc131414811b9198f7712bb892b9..8c68d37209792f9faa8401a2463594205d1f4515 100644 (file)
@@ -20,16 +20,6 @@ $app_icon_padding: 24px;
 
 $app_grid_fg_color: #fff;
 
-// Outline for low res icons
-.lowres-icon {
-  icon-shadow: 0 1px 2px rgba(0,0,0,0.3);
-}
-
-// Dropshadow for large icons
-.icon-dropshadow {
-  icon-shadow: 0 1px 2px rgba(0,0,0,0.4);
-}
-
 // Icon tiles in the app grid
 .app-well-app,
 %app-well-app {
diff --git a/data/theme/gnome-shell-sass/widgets/_base.scss b/data/theme/gnome-shell-sass/widgets/_base.scss
new file mode 100644 (file)
index 0000000..914dd59
--- /dev/null
@@ -0,0 +1,18 @@
+// Links
+.shell-link {
+  color: $link_color;
+
+  &:hover {
+    color: lighten($link_color, 10%);
+  }
+}
+
+// Outline for low res icons
+.lowres-icon {
+  icon-shadow: 0 1px 2px rgba(black, 0.3);
+}
+
+// Dropshadow for large icons
+.icon-dropshadow {
+  icon-shadow: 0 1px 2px rgba(black, 0.4);
+}
index 8f7e8d8248bdc65b12130f062c1b9c888075d5b2..fd6613dae938268711d07f1f67f0b30bc80cb481 100644 (file)
@@ -1,9 +1,4 @@
-// Links/URLs
-.shell-link {
-  color: $link_color;
-  &:hover { color: lighten($link_color,10%); }
-}
-
+// URLs
 .url-highlighter { link-color: $link_color; }
 
 // Rubberband for select-area screenshots
index ec750ef19d77a4efc1dc857d4aa695566d831d42..6305b590f93a83b3931b5ce352a1462ef431f4d7 100644 (file)
@@ -8,6 +8,7 @@ theme_sources = files([
   'gnome-shell-sass/_widgets.scss',
   'gnome-shell-sass/widgets/_app-grid.scss',
   'gnome-shell-sass/widgets/_app-switcher.scss',
+  'gnome-shell-sass/widgets/_base.scss',
   'gnome-shell-sass/widgets/_buttons.scss',
   'gnome-shell-sass/widgets/_calendar.scss',
   'gnome-shell-sass/widgets/_check-box.scss',